package com.projects.android.adapters;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.projects.android.R;

public class RestaurantViewHolder {
	private View mRow;
	private TextView title = null;
	private TextView detail = null;
	private ImageView i11 = null;

	public RestaurantViewHolder(View row) {
		mRow = row;
	}

	public TextView gettitle() {
		if (null == title) {
			title = (TextView) mRow.findViewById(R.id.lblRestaurantName);
		}
		return title;
	}

	public TextView getdetail() {
		if (null == detail) {
			detail = (TextView) mRow.findViewById(R.id.lblRestaurantAddress);
		}
		return detail;
	}

	public ImageView getImage() {
		if (null == i11) {
			i11 = (ImageView) mRow.findViewById(R.id.imgRestaurant);
		}
		return i11;
	}
}
